package net.jkdmanager.agent.services.agent;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

import net.jkdmanager.common.api.messages.AgentStatusMessage.Status;

import org.springframework.stereotype.Service;

@Service("agentStatusService")
public class AgentStatusServiceImpl implements AgentStatusService {
	
	private Status status = Status.INITIALIZING;
		
	@PostConstruct
	public void init() {
		
	}
	
	public void configurationObtained() {
		status = Status.RUNNING;
	}
	
	public Status getStatus() {
		return status;
	}
	
	@PreDestroy
	public void destroy() {
		
	}
	
}
